#ifndef MD5RC4_H
#define MD5RC4_H

#include <QString>


class Md5Rc4
{
public:
    Md5Rc4();


    QString md5Encryption(QString input);//md5加密

    void rc4EncryptionDecode(char *pData,unsigned long len);//用rc4加密解密

    void setKey(QString key){key_ = key;}//设置密匙

    void rc4_crypt(unsigned char*s, unsigned char*Data, unsigned long Len);
    void rc4_init(unsigned char*s, unsigned char*key, unsigned long Len);

private:
    QString key_;
};

#endif // MD5RC4_H
